package com.yfbao.horizon.docker.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @GetMapping("")
    public Integer getRulesNum(){
        log.info("test request");
        return 1;
    }

    @PostMapping("")
    public String testPostReq(){
        log.info("test post request");
        return "post";
    }

}
